﻿@{
    ViewBag.Title = "Common Command";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
        <ol class="breadcrumb">
            <li><a href="/Home.html">Home</a></li>
            <li><a href="/WebApp/WebApi"> Sanelib WebApp</a></li>
            <li class="active">Account</li>
        </ol>
     
            <div id="introduction">
                <h1 class="text-left">ControllerAPIs</h1>
                <h4>Account</h4>
            </div>
            <div>
                <h3>Constructor : AccountController </h3>
                <table class=" table-condensed table-striped">
                    <tr>
                        <th><strong>Parameters</strong></th>
                    </tr>
                    <tr>
                        <td class="table-bordered">IUserSession,</td>
                        <td class="table-bordered">IMapingEngine,</td>
                        <td class="table-bordered">IAuthenticationService</td>
                    </tr>
                </table>
                <p class="alert-info">Where, Parameters Local Variable are assigned to a Instance Variable form the <b>base</b> of <a class="btn-link" href="SmartApiController.html">SmartApiController</a></p>
                <p>
                    The authentication service to the Accountcontroller will check that password for the current user is valid or not.
                </p>
                <strong>Methods</strong>
                <ol id="method">
                    <li>
                        Post : This method has a parameter of LoginForm if true it will return the user to its /Home Page or else will throw an error saying username and password does not match.
                    </li>
                    <li>Put : Put method in Account will work to change password. In this function an ChangePasswordForm object is used as an argument. if the current user is validated, user will be asked to enter "OLD PASSWORD", "NEW PASSWORD", which would be in the form Put method will then execute the command to change password for the user.</li>

                </ol>
            </div>
      